package com.kingdee.eas.hr.compensation.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import java.sql.Date;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.BillEntryBaseCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.hr.compensation.CmpAdjSchItemCollection;
import com.kingdee.eas.framework.app.BillEntryBaseControllerBean;
import com.kingdee.eas.hr.compensation.CmpAdjSchItemInfo;
import java.util.List;



public abstract class AbstractCmpAdjSchItemControllerBean extends BillEntryBaseControllerBean implements CmpAdjSchItemController
{
    protected AbstractCmpAdjSchItemControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("8D3BB388");
    }

    public CmpAdjSchItemInfo getCmpAdjSchItemInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("926abcee-0100-1000-e000-0009c0a813c3"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            CmpAdjSchItemInfo retValue = (CmpAdjSchItemInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public CmpAdjSchItemInfo getCmpAdjSchItemInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("926abcee-0100-1000-e000-000ac0a813c3"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            CmpAdjSchItemInfo retValue = (CmpAdjSchItemInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public CmpAdjSchItemInfo getCmpAdjSchItemInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("926abcee-0100-1000-e000-000bc0a813c3"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            CmpAdjSchItemInfo retValue = (CmpAdjSchItemInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public CmpAdjSchItemCollection getCmpAdjSchItemCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("926abcee-0100-1000-e000-000cc0a813c3"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            CmpAdjSchItemCollection retValue = (CmpAdjSchItemCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public CmpAdjSchItemCollection getCmpAdjSchItemCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("926abcee-0100-1000-e000-000dc0a813c3"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            CmpAdjSchItemCollection retValue = (CmpAdjSchItemCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public CmpAdjSchItemCollection getCmpAdjSchItemCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("926abcee-0100-1000-e000-000ec0a813c3"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            CmpAdjSchItemCollection retValue = (CmpAdjSchItemCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public boolean setCmpAdjSchItemDataIF(Context ctx, List personIDList, Date[] effectDate, String operateState) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5106c30f-0108-1000-e000-0006c0a81247"), new Object[]{ctx, personIDList, effectDate, operateState});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setCmpAdjSchItemDataIF(ctx, personIDList, effectDate, operateState);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _setCmpAdjSchItemDataIF(Context ctx, List personIDList, Date[] effectDate, String operateState) throws BOSException, EASBizException;

    public boolean setCmpAdjSchItemDataIF(Context ctx, List personIDList, String operateState) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("55394091-0108-1000-e000-0006c0a81247"), new Object[]{ctx, personIDList, operateState});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setCmpAdjSchItemDataIF(ctx, personIDList, operateState);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _setCmpAdjSchItemDataIF(Context ctx, List personIDList, String operateState) throws BOSException, EASBizException;

    public void addCmpAdjSchemeForEnable(Context ctx, String fixedSchemeID, List personIDs) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("d980655b-5ff2-4e62-b65a-7310e2a867c5"), new Object[]{ctx, fixedSchemeID, personIDs});
            invokeServiceBefore(svcCtx);
            _addCmpAdjSchemeForEnable(ctx, fixedSchemeID, personIDs);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _addCmpAdjSchemeForEnable(Context ctx, String fixedSchemeID, List personIDs) throws BOSException, EASBizException;

    public void addCmpAdjSchemeForDisable(Context ctx, String fixedSchemeID) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("0614c53a-8c8b-4525-92f8-ab36710400ed"), new Object[]{ctx, fixedSchemeID});
            invokeServiceBefore(svcCtx);
            _addCmpAdjSchemeForDisable(ctx, fixedSchemeID);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _addCmpAdjSchemeForDisable(Context ctx, String fixedSchemeID) throws BOSException, EASBizException;

    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (BillEntryBaseCollection)(getCmpAdjSchItemCollection(ctx).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillEntryBaseCollection)(getCmpAdjSchItemCollection(ctx, view).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillEntryBaseCollection)(getCmpAdjSchItemCollection(ctx, oql).cast(BillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getCmpAdjSchItemCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getCmpAdjSchItemCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getCmpAdjSchItemCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getCmpAdjSchItemCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getCmpAdjSchItemCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getCmpAdjSchItemCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}